<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:42:"../template/pc/default/exam/dopackage.html";i:1585973612;}*/ ?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <title><?php echo $title; ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="/static/libs/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="/static/default/css/doclearn.css" media="all">
    <link rel="shortcut icon" href="<?php echo config('website.icon'); ?>" />
    <link rel="bookmark"href="<?php echo config('website.icon'); ?>" />
</head>
<body>
<div class="layui-layout learn-box">
    <div class="layui-row learn-header">
        <div class="layui-col-md10 learn-title"><a href="<?php echo url('index/exam/index'); ?>">
            <i class="layui-icon layui-icon-left"></i><?php echo $exam['exam']; ?></a>
        </div>
        <div class="layui-col-md2 layui-layout-right mr50 "><span class="fr"><a href="<?php echo url('index/user/index'); ?>">个人中心</a></span></div>
    </div>
    <div class="layui-row learn-content">
        <div class="learn-playroom">
            <form action="<?php echo url('index/exam/exampPost'); ?>" class="layui-form" method="post">
                <input type="hidden" id="examid" name="eid" value="<?php echo $exam['id']; ?>">
                <input type="hidden" id="nowTime"  value="<?php echo $now; ?>">
                <input type="hidden" id="endTime"  value="<?php echo $end; ?>">
                <input type="hidden" id="useType" value="3">
                <input type="hidden" id="examtype" value="<?php echo $exam['examsetting']['examtype']; ?>">
                <div class="layui-row doc-player" style="padding:0px;">
                    <div style="padding: 20px;">
                        <?php if(empty(!$myexam['myanswer'])): ?>
                        <div class="layui-row">
                            <div class="layui-col-md9">
                                <h1 class="tac"><?php echo $exam['exam']; ?></h1>
                                <div class="tac mt10 mb20">试题总分：<?php echo $exam['examsetting']['examscore']; ?>分，时间：<?php echo $exam['examsetting']['examtime']; ?>分钟</div>
                            </div>
                            <div class="layui-col-md3">
                                <div class="testpaper-result-total">
                                    <div class="well">
                                        <div class="testpaper-result-total-score">
                                            <?php if($myexam['status']==1): ?>
                                            <?php echo $myexam['totalscores']; ?><small>分</small>
                                            <?php else: ?>
                                            ?<small>分</small>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php else: ?>
                        <h1 class="tac"><?php echo $exam['exam']; ?></h1>
                        <div class="tac mt10 mb20">试题总分：<?php echo $exam['examsetting']['examscore']; ?>分，时间：<?php echo $exam['examsetting']['examtime']; ?>分钟</div>
                        <?php endif; ?>
                        <div class="layui-card">
                            <div class="layui-collapse" id="eaxmbox">
                                <?php if(is_array($exam['examsetting']['questype']) || $exam['examsetting']['questype'] instanceof \think\Collection || $exam['examsetting']['questype'] instanceof \think\Paginator): if( count($exam['examsetting']['questype'])==0 ) : echo "" ;else: foreach($exam['examsetting']['questype'] as $key=>$vvv): ?>
                                <div class="layui-colla-item">
                                    <h2 class="layui-colla-title" id="question_type_<?php echo $key; ?>"><?php echo get_question_type($key); ?> <span class="ml10">(<?php echo $vvv['describe']; ?>)</span><i class="layui-icon layui-colla-icon"></i></h2>
                                    <div class="layui-colla-content layui-show pl20">
                                        <?php if(get_question_mark($key) == 'TiMao'): if(is_array($exam['examquestions'][$key]) || $exam['examquestions'][$key] instanceof \think\Collection || $exam['examquestions'][$key] instanceof \think\Paginator): if( count($exam['examquestions'][$key])==0 ) : echo "" ;else: foreach($exam['examquestions'][$key] as $k=>$v): ?>
                                        <p style="font-weight: bold; font-size: 15px;"><?php echo get_question_info($v,"question"); ?></p>
                                        <?php if(is_array($exam['subQuestions'][$v]) || $exam['subQuestions'][$v] instanceof \think\Collection || $exam['subQuestions'][$v] instanceof \think\Paginator): if( count($exam['subQuestions'][$v])==0 ) : echo "" ;else: foreach($exam['subQuestions'][$v] as $k=>$vv): ?>
                                        <div id="question_<?php echo $vv; ?>" class="mt10">
                                            <div class="question-seq-wrap ">
                                                <div class="question-seq">
                                                    <?php echo $k+1; ?>
                                                </div>
                                                <div class="question-score">
                                                    <?php echo $vvv['score']; ?>分
                                                </div>
                                                <input type="hidden" name="questionscore[<?php echo $vv; ?>]" value="<?php echo $vvv['score']; ?>">
                                            </div>
                                            <div class=" ml50">
                                                <p style="font-weight: bold; font-size: 15px;"><?php echo get_question_info($vv,"question"); ?></p>
                                            </div>
                                            <?php switch(get_question_mark(get_question_info($name=$vv,"questiontype"))): case "SingleSelect": ?>
                                            <div class="mt20 ml50">
                                                <?php echo get_question_info($vv,"questionselect"); if(empty($myexam['myanswer'])): ?>
                                                <div>
                                                    <?php echo get_SingleSelect($vv); ?>
                                                </div>
                                                <?php else: ?>
                                                <div class="layui-row mt10">
                                                    <div class="layui-col-md10">
                                                        正确答案是：<?php echo get_answer($vv); ?> &nbsp; &nbsp;
                                                        你的答案是：<?php echo $myexam['myanswer'][$vv]; ?>&nbsp; &nbsp;&nbsp; &nbsp;
                                                        此题得分：<?php echo $myexam['myscore'][$vv]; ?>
                                                    </div>
                                                    <div class="layui-col-md2">
                                                        <span class="js-analysis">
                                                            <a style="cursor:pointer;" class="zhankai zhankai<?php echo $vv; ?>" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-down mr10"></i>展开解析</a>
                                                            <a style="cursor:pointer;" class="shouqi shouqi<?php echo $vv; ?> layui-hide" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-up mr10"></i>收起解析</a>
                                                        </span>
                                                    </div>
                                                </div>
                                                <div class="analysis<?php echo $vv; ?> well mb0 mt20 layui-hide">
                                                    <p><?php echo get_analysis($vv); ?></p>
                                                </div>
                                                <?php endif; ?>
                                            </div>
                                            <?php break; case "MultiSelect": ?>
                                            <div class="mt20 ml50">
                                                <?php echo get_question_info($vv,"questionselect"); if(empty($myexam['myanswer'])): ?>
                                                <div>
                                                    <?php echo get_multiSelect($vv); ?>
                                                </div>
                                                <?php else: ?>
                                                <div class="layui-row mt10">
                                                    <div class="layui-col-md10">
                                                        正确答案是：<?php echo get_answer($vv); ?> &nbsp; &nbsp;
                                                        你的答案是：<?php echo $myexam['myanswer'][$vv]; ?>&nbsp; &nbsp;&nbsp; &nbsp;
                                                        此题得分：<?php echo $myexam['myscore'][$vv]; ?>
                                                    </div>
                                                    <div class="layui-col-md2">
                                                        <span class="js-analysis">
                                                            <a style="cursor:pointer;" class="zhankai zhankai<?php echo $vv; ?>" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-down mr10"></i>展开解析</a>
                                                            <a style="cursor:pointer;" class="shouqi shouqi<?php echo $vv; ?> layui-hide" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-up mr10"></i>收起解析</a>
                                                        </span>
                                                    </div>
                                                </div>
                                                <div class="analysis<?php echo $vv; ?> well mb0 mt20 layui-hide">
                                                    <p><?php echo get_analysis($vv); ?></p>
                                                </div>
                                                <?php endif; ?>
                                            </div>
                                            <?php break; case "FillInBlanks": ?>
                                            <div class="mt20 ml50">
                                                <?php if(empty($myexam['myanswer'])): ?>
                                                <block id="editor<?php echo $vv; ?>"></block>
                                                <textarea name="answer[<?php echo $vv; ?>]"  style="display: none" id="answereditor<?php echo $vv; ?>"></textarea>
                                                <?php else: ?>
                                                <div class="layui-row mt10">
                                                    <div class="layui-col-md10">
                                                        <div class="layui-col-md12">
                                                            正确答案是：<?php echo get_answer($vv); ?>
                                                        </div>
                                                        <div class="layui-col-md12">
                                                            你的答案是：<?php echo $myexam['myanswer'][$vv]; ?>
                                                        </div>
                                                        <div class="layui-col-md12">
                                                            此题得分：<?php echo (isset($myexam['myscore'][$vv]) && ($myexam['myscore'][$vv] !== '')?$myexam['myscore'][$vv]:'<span class="layui-badge layui-bg-green">等待老师批阅</span>'); ?>
                                                        </div>
                                                    </div>
                                                    <div class="layui-col-md2">
                                                        <span class="js-analysis">
                                                            <a style="cursor:pointer;" class="zhankai zhankai<?php echo $vv; ?>" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-down mr10"></i>展开解析</a>
                                                            <a style="cursor:pointer;" class="shouqi shouqi<?php echo $vv; ?> layui-hide" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-up mr10"></i>收起解析</a>
                                                        </span>
                                                    </div>
                                                </div>
                                                <div class="analysis<?php echo $vv; ?> well mb0 mt20 layui-hide">
                                                    <p><?php echo get_analysis($vv); ?></p>
                                                </div>
                                                <?php endif; ?>
                                            </div>
                                            <?php break; case "TrueOrfalse": ?>
                                            <div class="mt20 ml50">
                                                <?php if(empty($myexam['myanswer'])): ?>
                                                <div class="mt10">
                                                    <input type="radio" name="answer[<?php echo $vv; ?>]" value="1" title="正确">
                                                    <input type="radio" name="answer[<?php echo $vv; ?>]" value="0" title="错误">
                                                </div>
                                                <?php else: ?>
                                                <div class="layui-row mt10">
                                                    <div class="layui-col-md10">
                                                        正确答案是：<?php echo get_yesOrNo(get_answer($vv)); ?>&nbsp; &nbsp;
                                                        你的答案是：<?php echo get_yesOrNo($myexam['myanswer'][$vv]); ?>&nbsp; &nbsp;&nbsp; &nbsp;
                                                        此题得分：<?php echo $myexam['myscore'][$vv]; ?>
                                                    </div>
                                                    <div class="layui-col-md2">
                                                        <span class="js-analysis">
                                                            <a style="cursor:pointer;" class="zhankai zhankai<?php echo $vv; ?>" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-down mr10"></i>展开解析</a>
                                                            <a style="cursor:pointer;" class="shouqi shouqi<?php echo $vv; ?> layui-hide" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-up mr10"></i>收起解析</a>
                                                        </span>
                                                    </div>
                                                </div>
                                                <div class="analysis<?php echo $vv; ?> well mb0 mt20 layui-hide">
                                                    <p><?php echo get_analysis($vv); ?></p>
                                                </div>
                                                <?php endif; ?>
                                            </div>
                                            <?php break; case "ShortAnswer": ?>
                                            <div class="mt20 ml50">
                                                <?php if(empty($myexam['myanswer'])): ?>
                                                <block id="editor<?php echo $vv; ?>"></block>
                                                <textarea name="answer[<?php echo $vv; ?>]"  style="display: none" id="editoranswer<?php echo $vv; ?>"></textarea>
                                                <?php else: ?>
                                                <div class="layui-row mt10">
                                                    <div class="layui-col-md10">
                                                        <div class="layui-col-md12">
                                                            正确答案是：<?php echo get_answer($vv); ?>
                                                        </div>
                                                        <div class="layui-col-md12">
                                                            你的答案是：<?php echo $myexam['myanswer'][$vv]; ?>
                                                        </div>
                                                        <div class="layui-col-md12">
                                                            此题得分：<?php echo (isset($myexam['myscore'][$vv]) && ($myexam['myscore'][$vv] !== '')?$myexam['myscore'][$vv]:'<span class="layui-badge layui-bg-green">等待老师批阅</span>'); ?>
                                                        </div>
                                                    </div>
                                                    <div class="layui-col-md2">
                                                        <span class="js-analysis">
                                                            <a style="cursor:pointer;" class="zhankai zhankai<?php echo $vv; ?>" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-down mr10"></i>展开解析</a>
                                                            <a style="cursor:pointer;" class="shouqi shouqi<?php echo $vv; ?> layui-hide" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-up mr10"></i>收起解析</a>
                                                        </span>
                                                    </div>
                                                </div>
                                                <div class="analysis<?php echo $vv; ?> well mb0 mt20 layui-hide">
                                                    <p><?php echo get_analysis($vv); ?></p>
                                                </div>
                                                <?php endif; ?>
                                            </div>
                                            <?php break; endswitch; ?>
                                        </div>
                                        <hr class="mb20">
                                        <?php endforeach; endif; else: echo "" ;endif; endforeach; endif; else: echo "" ;endif; else: if(is_array($exam['examquestions'][$key]) || $exam['examquestions'][$key] instanceof \think\Collection || $exam['examquestions'][$key] instanceof \think\Paginator): if( count($exam['examquestions'][$key])==0 ) : echo "" ;else: foreach($exam['examquestions'][$key] as $k=>$vv): ?>
                                        <div id="question_<?php echo $vv; ?>" class="mt10">
                                            <div class="question-seq-wrap ">
                                                <div class="question-seq">
                                                    <?php echo $k+1; ?>
                                                </div>
                                                <div class="question-score">
                                                    <?php echo $vvv['score']; ?>分
                                                </div>
                                                <input type="hidden" name="questionscore[<?php echo $vv; ?>]" value="<?php echo $vvv['score']; ?>">
                                            </div>
                                            <div class=" ml50">
                                                <p style="font-weight: bold; font-size: 15px;"><?php echo get_question_info($vv,"question"); ?></p>
                                            </div>
                                            <?php switch(get_question_mark(get_question_info($name=$vv,"questiontype"))): case "SingleSelect": ?>
                                            <div class="mt20 ml50">
                                                <?php echo get_question_info($vv,"questionselect"); if(empty($myexam['myanswer'])): ?>
                                                <div>
                                                    <?php echo get_SingleSelect($vv); ?>
                                                </div>
                                                <?php else: ?>
                                                <div class="layui-row mt10">
                                                    <div class="layui-col-md10">
                                                        正确答案是：<?php echo get_answer($vv); ?> &nbsp; &nbsp;
                                                        你的答案是：<?php echo $myexam['myanswer'][$vv]; ?>&nbsp; &nbsp;&nbsp; &nbsp;
                                                        此题得分：<?php echo $myexam['myscore'][$vv]; ?>
                                                    </div>
                                                    <div class="layui-col-md2">
                                                        <span class="js-analysis">
                                                            <a style="cursor:pointer;" class="zhankai zhankai<?php echo $vv; ?>" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-down mr10"></i>展开解析</a>
                                                            <a style="cursor:pointer;" class="shouqi shouqi<?php echo $vv; ?> layui-hide" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-up mr10"></i>收起解析</a>
                                                        </span>
                                                    </div>
                                                </div>
                                                <div class="analysis<?php echo $vv; ?> well mb0 mt20 layui-hide">
                                                    <p><?php echo get_analysis($vv); ?></p>
                                                </div>
                                                <?php endif; ?>
                                            </div>
                                            <?php break; case "MultiSelect": ?>
                                            <div class="mt20 ml50">
                                                <?php echo get_question_info($vv,"questionselect"); if(empty($myexam['myanswer'])): ?>
                                                <div>
                                                    <?php echo get_multiSelect($vv); ?>
                                                </div>
                                                <?php else: ?>
                                                <div class="layui-row mt10">
                                                    <div class="layui-col-md10">
                                                        正确答案是：<?php echo get_answer($vv); ?> &nbsp; &nbsp;
                                                        你的答案是：<?php echo $myexam['myanswer'][$vv]; ?>&nbsp; &nbsp;&nbsp; &nbsp;
                                                        此题得分：<?php echo $myexam['myscore'][$vv]; ?>
                                                    </div>
                                                    <div class="layui-col-md2">
                                                        <span class="js-analysis">
                                                            <a style="cursor:pointer;" class="zhankai zhankai<?php echo $vv; ?>" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-down mr10"></i>展开解析</a>
                                                            <a style="cursor:pointer;" class="shouqi shouqi<?php echo $vv; ?> layui-hide" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-up mr10"></i>收起解析</a>
                                                        </span>
                                                    </div>
                                                </div>
                                                <div class="analysis<?php echo $vv; ?> well mb0 mt20 layui-hide">
                                                    <p><?php echo get_analysis($vv); ?></p>
                                                </div>
                                                <?php endif; ?>
                                            </div>
                                            <?php break; case "FillInBlanks": ?>
                                            <div class="mt20 ml50">
                                                <?php if(empty($myexam['myanswer'])): ?>
                                                <block id="editor<?php echo $vv; ?>"></block>
                                                <textarea name="answer[<?php echo $vv; ?>]" style="display: none"  id="answereditor<?php echo $vv; ?>"></textarea>
                                                <?php else: ?>
                                                <div class="layui-row mt10">
                                                    <div class="layui-col-md10">
                                                        <div class="layui-col-md12">
                                                            正确答案是：<?php echo get_answer($vv); ?>
                                                        </div>
                                                        <div class="layui-col-md12">
                                                            你的答案是：<?php echo $myexam['myanswer'][$vv]; ?>
                                                        </div>
                                                        <div class="layui-col-md12">
                                                            此题得分：<?php echo (isset($myexam['myscore'][$vv]) && ($myexam['myscore'][$vv] !== '')?$myexam['myscore'][$vv]:'<span class="layui-badge layui-bg-green">等待老师批阅</span>'); ?>
                                                        </div>
                                                    </div>
                                                    <div class="layui-col-md2">
                                                        <span class="js-analysis">
                                                            <a style="cursor:pointer;" class="zhankai zhankai<?php echo $vv; ?>" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-down mr10"></i>展开解析</a>
                                                            <a style="cursor:pointer;" class="shouqi shouqi<?php echo $vv; ?> layui-hide" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-up mr10"></i>收起解析</a>
                                                        </span>
                                                    </div>
                                                </div>
                                                <div class="analysis<?php echo $vv; ?> well mb0 mt20 layui-hide">
                                                    <p><?php echo get_analysis($vv); ?></p>
                                                </div>
                                                <?php endif; ?>
                                            </div>
                                            <?php break; case "TrueOrfalse": ?>
                                            <div class="mt20 ml50">
                                                <?php if(empty($myexam['myanswer'])): ?>
                                                <div class="mt10">
                                                    <input type="radio" name="answer[<?php echo $vv; ?>]" value="1" title="正确">
                                                    <input type="radio" name="answer[<?php echo $vv; ?>]" value="0" title="错误">
                                                </div>
                                                <?php else: ?>
                                                <div class="layui-row mt10">
                                                    <div class="layui-col-md10">
                                                        正确答案是：<?php echo get_yesOrNo(get_answer($vv)); ?>&nbsp; &nbsp;
                                                        你的答案是：<?php echo get_yesOrNo($myexam['myanswer'][$vv]); ?>&nbsp; &nbsp;&nbsp; &nbsp;
                                                        此题得分：<?php echo $myexam['myscore'][$vv]; ?>
                                                    </div>
                                                    <div class="layui-col-md2">
                                                        <span class="js-analysis">
                                                            <a style="cursor:pointer;" class="zhankai zhankai<?php echo $vv; ?>" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-down mr10"></i>展开解析</a>
                                                            <a style="cursor:pointer;" class="shouqi shouqi<?php echo $vv; ?> layui-hide" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-up mr10"></i>收起解析</a>
                                                        </span>
                                                    </div>
                                                </div>
                                                <div class="analysis<?php echo $vv; ?> well mb0 mt20 layui-hide">
                                                    <p><?php echo get_analysis($vv); ?></p>
                                                </div>
                                                <?php endif; ?>
                                            </div>
                                            <?php break; case "ShortAnswer": ?>
                                            <div class="mt20 ml50">
                                                <?php if(empty($myexam['myanswer'])): ?>
                                                <block id="editor<?php echo $vv; ?>"></block>
                                                <textarea  name="answer[<?php echo $vv; ?>]"  style="display: none" id="answereditor<?php echo $vv; ?>"></textarea>
                                                <?php else: ?>
                                                <div class="layui-row mt10">
                                                    <div class="layui-col-md10">
                                                        <div class="layui-col-md12">
                                                            正确答案是：<?php echo get_answer($vv); ?>
                                                        </div>
                                                        <div class="layui-col-md12">
                                                            你的答案是：<?php echo $myexam['myanswer'][$vv]; ?>
                                                        </div>
                                                        <div class="layui-col-md12">
                                                            此题得分：<?php echo (isset($myexam['myscore'][$vv]) && ($myexam['myscore'][$vv] !== '')?$myexam['myscore'][$vv]:'<span class="layui-badge layui-bg-green">等待老师批阅</span>'); ?>
                                                        </div>
                                                    </div>
                                                    <div class="layui-col-md2">
                                                        <span class="js-analysis">
                                                            <a style="cursor:pointer;" class="zhankai zhankai<?php echo $vv; ?>" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-down mr10"></i>展开解析</a>
                                                            <a style="cursor:pointer;" class="shouqi shouqi<?php echo $vv; ?> layui-hide" aid="<?php echo $vv; ?>"><i class="layui-icon layui-icon-up mr10"></i>收起解析</a>
                                                        </span>
                                                    </div>
                                                </div>
                                                <div class="analysis<?php echo $vv; ?> well mb0 mt20 layui-hide">
                                                    <p><?php echo get_analysis($vv); ?></p>
                                                </div>
                                                <?php endif; ?>
                                            </div>
                                            <?php break; endswitch; ?>
                                        </div>
                                        <hr class="mb20">
                                        <?php endforeach; endif; else: echo "" ;endif; endif; ?>
                                    </div>
                                </div>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
                <?php if(empty($myexam['myanswer'])): ?>
                <div class="layui-row  learn-bottom">
                    <button id="jiaojuan" class="layui-btn layui-btn-normal" lay-filter="*" lay-submit="">我要交卷</button>
                </div>
                <?php endif; ?>
            </form>
        </div>
        <div class="learn-right-box">
            <a href="javascript:void(0);" id="aside-slide" class="btn-slide l am-show-lg-up"><i>〉</i></a>
            <div class="learn-r-wrap">
                <div  class="time">
                    <?php if($useType==3): ?>
                    <span class="exam-daojishi"><span id="remain" class="time"></span></span>
                    <?php endif; ?>
                </div>
                <div  class="answer-view">
                    <div  class="nums">
                        <?php if(is_array($exam['examsetting']['questype']) || $exam['examsetting']['questype'] instanceof \think\Collection || $exam['examsetting']['questype'] instanceof \think\Paginator): if( count($exam['examsetting']['questype'])==0 ) : echo "" ;else: foreach($exam['examsetting']['questype'] as $key=>$vvv): ?>
                        <div class="questiontype"><?php echo get_question_type($key); ?></div>
                        <?php if(get_question_mark($key) == 'TiMao'): else: if(is_array($exam['examquestions'][$key]) || $exam['examquestions'][$key] instanceof \think\Collection || $exam['examquestions'][$key] instanceof \think\Paginator): if( count($exam['examquestions'][$key])==0 ) : echo "" ;else: foreach($exam['examquestions'][$key] as $k=>$vv): 
                                if($myexam['myresult'][$vv]==1){
                                    $result='done';
                                }
                                if($myexam['myresult'][$vv]==2){
                                    $result='error';
                                }
                                 ?>
                                <a href="javascript:void(0)"  class="num <?php echo $result; ?>" signid="<?php echo $vv; ?>" id="signeditor<?php echo $vv; ?>"><?php echo $k+1; ?></a>
                            <?php endforeach; endif; else: echo "" ;endif; ?><br>
                        <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                    </div>
                    <div  class="legend" id="legend">
                        <span  class="num done"></span>
                        <span >已做</span>
                        <span  class="num error"></span>
                        <span >错误</span>
                        <span  class="num"></span>
                        <span >未做</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script src="/static/libs/layui/layui.all.js"></script>
<script src="/static/libs/common/common.js"></script>
<script src="https://cdn.bootcss.com/stickyNavbar.js/1.3.5/jquery.stickyNavbar.min.js"></script>
<script src="//unpkg.com/wangeditor/release/wangEditor.min.js"></script>
<script>
    var E = window.wangEditor;
    $("#eaxmbox block").each(function () {
        var id=this.id;
        var editor = new E('#'+id);
        editor.customConfig.onchange = function (html) {
            $('#answer'+id).val(html);
            $("#sign"+id).addClass("done");
        };
        editor.customConfig.uploadFileName = 'image';
        editor.customConfig.uploadImgServer = '/api/Uploader/wangEditorUp';
        editor.create();
        $('#answer'+id).val(editor.txt.html());
    })
</script>
</html>